*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul{
  list-style: none;
}
/* 统一组件代码 */
input[type="text"]{
  width: 100%;
  flex:1;
  margin-right: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  &:focus{
    outline: none;
    border-color: #007bff;
  }
  &::placeholder{
    color: #ccc;
  }
}
 
  button{
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.line{
  text-decoration: line-through;
}


.container{
  width: 400px;
  margin: 50px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}
.container h3{
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.container .addtask{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.container .search{
  margin-top: 10px;
  margin-bottom: 10px;
}

.container .tasklist li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f8f8f8;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: all 0.3s ease;
  &:hover {
    transform: translateY(-5px);
  }
}
.container  .footer{
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  font-size: 14px;
}

/* 弹框的基础样式 */
#editAlertBox {
  display: none; /* 默认隐藏 */
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  z-index: 1000;
  text-align: center;
}
#editAlertBox button {
  margin-top: 10px;
}